package com.whimscrew.user.controller;

import com.whimscrew.user.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("v2/user")
public class V2UserController {

    @Autowired
    DeptService deptService;


    @GetMapping("dept")
    public String userDept( )   {
        return  deptService.getV2Dept();
    }


}
